package com.our.learning.infrastructure.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 答卷详情
 * @author : Ice'Clean
 * @date : 2023-06-24
 */
@TableName("t_answer_info")
public class AnswerInfo {
    /** 答卷 ID */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /** 答题卡 ID */
    private Integer sheetId;
    /** 题号 */
    private Integer titleNo;
    /** 题目 ID（向查询冗余) */
    private Integer questionId;
    /** 学生 ID（向查询冗余） */
    private Integer studentId;
    /** 考生答案 */
    private String answer;
    /** 得分（自动/教师评） */
    private Integer score;
    /** 题目总分（向查询冗余） */
    private Integer sumScore;
    /** 首次提交答案时间 */
    private String createTime;
    /** 最后一次修改答案时间 */
    @TableField(update = "now()")
    private String updateTime;
    /** 提交分数时间 */
    private String commitTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getSheetId() {
        return sheetId;
    }

    public void setSheetId(Integer sheetId) {
        this.sheetId = sheetId;
    }

    public Integer getTitleNo() {
        return titleNo;
    }

    public void setTitleNo(Integer titleNo) {
        this.titleNo = titleNo;
    }

    public Integer getQuestionId() {
        return questionId;
    }

    public void setQuestionId(Integer questionId) {
        this.questionId = questionId;
    }

    public Integer getStudentId() {
        return studentId;
    }

    public void setStudentId(Integer studentId) {
        this.studentId = studentId;
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }

    public Integer getScore() {
        return score;
    }

    public void setScore(Integer score) {
        this.score = score;
    }

    public Integer getSumScore() {
        return sumScore;
    }

    public void setSumScore(Integer sumScore) {
        this.sumScore = sumScore;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public String getCommitTime() {
        return commitTime;
    }

    public void setCommitTime(String commitTime) {
        this.commitTime = commitTime;
    }
}
